package chapter3

import "fmt"

func Test4()  {
	sum:=[3]int{1,2,3}

	for i,x:=range sum{
		sum[i]+=10
		fmt.Println(x,sum[i])
	}
	fmt.Println(sum)
	for i,x:=range sum[:]{
		sum[i]+=10
		fmt.Println(x,sum[i])
	}
	fmt.Println(sum)
}
